package com.ebt.m.data.rxModel.api;

import com.ebt.m.commons.model.data.BaseDataResult;
import com.ebt.m.data.rxModel.apibean.PolicyProposal;
import com.ebt.m.data.rxModel.apibean.PolicyUrl;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * @author allen
 * 在线投单
 */

public interface PolicyAPI {
    /**
     * 选择产品-查询计划书
     *
     * @return
     */
    @GET("/erisk/online/policy/products/viaProposal")
    Observable<BaseDataResult<List<PolicyProposal>>> getPolicyProposals(@QueryMap Map<String, String> params);

    /**
     * 获取计划书投单地址
     *
     * @param pickNum
     * @return
     */
    @GET("/proposal/convertPolicyOnline/url/get")
    Observable<BaseDataResult<PolicyUrl>> getPolicyUrl(@Query("pickNum") String pickNum);
}